package com.wisezone.demo0218;

public class TestSubject {
    public static void main(String[] args) {
//        Subject subject=new RealSubject();
//        String string= subject.action("张三",98.5);
//        System.out.println(string);

        MyProxy proxy=new MyProxy();
//        Subject subject=new RealSubject();
        Subject subject=(Subject) proxy.blink(new RealSubject());
        String string= subject.action("张三",98.5);
        System.out.println(string);
    }
}
